// 天气数据接口
export interface Weather {
  city: string
  temperature: number
  humidity: number
  windSpeed: number
  weather: string
  weatherIcon: string
  description: string
  timestamp: number
}

// 天气记录接口
export interface WeatherRecord extends Weather {
  id: string
  createdAt: number
  updatedAt?: number
}

// 过滤选项
export interface FilterOptions {
  city?: string
  startDate?: number
  endDate?: number
  weatherType?: string
}

// API响应接口
export interface ApiResponse<T> {
  success: boolean
  data?: T
  error?: string
}

// 图表数据接口
export interface ChartData {
  labels: string[]
  datasets: Array<{
    label: string
    data: number[]
    backgroundColor?: string | string[]
    borderColor?: string
  }>
} 